package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author chenzhihua@skyworth.com
 * @version 1.0
 * @since 2021/11/8 15:54
 */
@Controller
public class  TestController {


    @GetMapping("/")
    public String loginHome() {
        return "redirect:/login-page";
    }


    @GetMapping("/login-page")
    public String loginPage() {
        return "login";
    }

}
